{extend name="public:_base" /}
{block name="js"}
{include file="public/_validform"}

{/block}
{block name="main"}

<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 微信用户  <a class="btn radius btn-success radius r" style="line-height:1.6em;margin-top:3px"
                                              href="javascript:location.replace(location.href);" title="刷新"><i
        class="Hui-iconfont">&#xe68f;</i></a></nav>


<div class="page-container">

    <form name="" method="post" action="" id="form">

        <div class="cl pd-5 bg-1 bk-gray">
             <span class="l">
            <a class="btn radius btn-primary radius" onclick="edit('添加分组','{:url(\''.\\think\\Request::instance()->controller().'/add')}')" href="javascript:;">
            <i class="Hui-iconfont">&#xe600;</i> 添加分组</a>

        </span>
        </div>

        <div class="mt-10">
            <table class="layui-table">
                <thead>
                <tr class="text-c">
                    <th width="40">序号</th>
                    <th width="100">昵称</th>
                    <th width="100">操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="$data" id="vo" empty="$_html_empty"}
                <tr class="text-c va-m">
                    <td>{$i}</td>
                    <td class="text-l">
                        {$vo.name}
                    </td>
                    <td class="text-l">
                        <a style="text-decoration:none" class="btn radius btn-xs btn-success"
                           onClick="edit('查看：{$vo.name}的用户','{:url(\''.\\think\\Request::instance()->controller().'/userlist',['groupid'=>$vo.id])}','10001')"
                          href="javascript:;"
                           title="查看">查看用户</a>
                           <a style="text-decoration:none" class="btn radius btn-xs btn-warning"
                           onClick="edit('编辑：{$vo.name}','{:url(\''.\\think\\Request::instance()->controller().'/edit',['id'=>$vo.id,'name'=>$vo.name])}','10001')"
                          href="javascript:;"
                           title="编辑">编辑</a>
                           <!--<a style="text-decoration:none" class="btn radius btn-xs btn-danger"-->
                           <!--onClick="del_old(this,'{:url(\''.\\think\\Request::instance()->controller().'/del',['id'=>$vo.id])}','10001')"-->
                          <!--href="javascript:;"-->
                           <!--title="删除">删除</a>-->
                        <a style="text-decoration:none" class="btn radius btn-xs btn-danger"
                           onClick="del('{:url(\''.\\think\\Request::instance()->controller().'/del')}',{$vo.id})"
                           href="javascript:;"
                           title="删除">删除</a>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div>
    </form>

</div>
{/block}